<%include file="header.html"%>
<%include file="top.html"%>
<%include file="left.html"%>
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="javascript:void(0);">服务器管理</a>
							</li>
							<li class="active"><a href="javascript:void(0);">管理服务器</a></li>
						</ul><!-- .breadcrumb -->
					</div>

					<div class="page-content">

							<div class="col-xs-12">
								<div class="alert alert-info">
									<i class="icon-hand-right"></i>

									<strong class="red">请注意：</strong><i class="icon-pencil bigger-120"></i> 为编辑，<i class="icon-trash bigger-120"></i> 为删除
									<button class="close" data-dismiss="alert">
										<i class="icon-remove"></i>
									</button>
								</div>
								<div class="table-header">&nbsp;&nbsp;&nbsp;&nbsp;</div>
								
								
									<div class="alert alert-info">
									</button>
								</div>

								<div id="dropzone">
								
								<form name ="myForm" class="dropzone" action="index.php?mod=Game&do=uploadExcel" method="post" enctype="multipart/form-data">
									<label for="file">请上传loginIds.xls文件</label>
									<div class="fallback">
									<input type="file" name="file" id="file" />
									</div> 
									<br />
									<div class="clearfix">
									<input type="submit" name="submit" value="上传excel" class="btn btn-info btn-success"/>
									</div>
									<br/>
									<br/>
									<%if $message%>
									<div class="clearfix">
										<label for="file"><%$message%></label>
									</div>
								<%/if%>
								</form>
								
								<div class="table-responsive">
								</div><!-- /.table-responsive -->
							</div><!-- /span -->

					</div><!-- /.page-content -->
				</div><!-- /.main-content -->

		<script type="text/javascript">

			jQuery(function($) {
				var oTable1 = $('#sample-table-2').dataTable( {
				"aoColumns": [
			      { "bSortable": false },
				  { "bSortable": false },
				  { "bSortable": false },
				  { "bSortable": false },
				  { "bSortable": false },
				  { "bSortable": false },
				  { "bSortable": false },
				  { "bSortable": false },
				  { "bSortable": false },
				  { "bSortable": false }
				] } );
			
				$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
				function tooltip_placement(context, source) {
					var $source = $(source);
					var $parent = $source.closest('table')
					var off1 = $parent.offset();
					var w1 = $parent.width();
			
					var off2 = $source.offset();
					var w2 = $source.width();
			
					if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
					return 'left';
				}
			})

			function formSubmit(type, serverId) {
				var param = {};
				param['mod'] = 'Publish';
				param['do'] = 'serverModify';
				param['serverId'] = serverId;
				param['type'] = type;

				if (type == 'editor') {
					window.location.href = "index.php?mod=Publish&do=showServerEditor&serverId=" + serverId;
				} else {

					$.ajax({
						type:'POST',
						url:'index.php',
						data:param,
						dataType:'html',
						success:function(data) {
							var dataObj = eval("(" + data + ")");//转换为json对象
							if(dataObj.code == 1) {
								alert(dataObj.msg);
								window.location.href = "index.php?mod=Publish&do=showServerList";
							} else {
								alert(dataObj.msg);
							}
						}
					});
				}
			}
		</script>
<%include file="footer.html"%>

